#pragma once

#include <iostream>


typedef int ElemType;
const static int maxSize = 1000;


class MyVector
{
public:
    MyVector();
    MyVector(int sum, ElemType data);  
    ~MyVector();

    int length();
    bool empty();
    void clear();
    int get(int index,ElemType data);
    int locateElem(ElemType data);
    int insert(int index, ElemType data);
    int deleteData(int index, ElemType &data);

    void printElem();

private:
    ElemType m_data[maxSize];
    int m_length;

};
